package com.wyx.rtddels.controller;

import com.wyx.rtddels.service.RtdTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WYX
 * @date 2024/11/8
 * @Description
 * 删除测点时间为秒级别的数据
 */
@RestController
@RequestMapping("update")
public class UpdateRtdTAgs {
    @Autowired
    RtdTagService rtdTagService;

    /**
     * 尝试删除 存在毫秒级别的数据
     * @author WYX
     * @return boolean
     */
    @GetMapping("updateMillSecond")
    public boolean tryDelMillSecond()
    {
        boolean flag=rtdTagService.updateMs();
        return flag;
    }
}
